<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>      
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<link rel="stylesheet"  href="${host_url}/css/app/common.css">
<link rel="stylesheet"  href="${host_url}/css/app/coupon_details.css">
<link rel="stylesheet"  href="${host_url}/css/app/dropload.css">
<script src="${host_url}/js/app/jquery.min.js"></script>
<script src="${host_url}/js/app/common.js"></script>
<script src="${host_url}/js/app/dropload.min.js"></script>
<script type="text/javascript">
  document.getElementsByTagName('html')[0].style.fontSize = document.documentElement.clientWidth/50 + 'px';
</script>
<script type="text/javascript">
var os="${os}";
<c:if test="${os=='ios'|| os=='android'}">
function fn_goConnPage(order_id,order_state,order_payType,order_orderTyp) {
	window.webkit.messageHandlers.ios_open_page.postMessage('NewOrderDetailViewController:::orderId->'+order_id+':::state->'+order_state+':::payType->'+order_payType+':::orderType->'+order_orderTyp);
}	
</c:if>
</script>
<title>${shopping_money_name}</title>
</head>
<body>
	<c:if test="${LogBuyCashOne.award_id == 2 or LogBuyCashOne.award_id == 3 or LogBuyCashOne.award_id == 4 or LogBuyCashOne.award_id == 8 or LogBuyCashOne.type == 2 or LogBuyCashOne.type == 3}">
	<c:if test="${LogBuyCashOne.bill_type == 2}">
	    <p class="clearfix title-2">
	        <span class="leftArea">入账金额</span>
	        <span class="rightArea enter">${LogBuyCashOne.buy_cash}</span>
	    </p>
    </c:if>
    <c:if test="${LogBuyCashOne.bill_type == 1}">
	    <p class="clearfix title-2">
	        <span class="leftArea">出账金额</span>
	        <span class="rightArea">${LogBuyCashOne.buy_cash}</span>
	    </p>
    </c:if>    
    <ul class="content3">
        <li class="clearfix">
            <p class="leftArea">类<span>站位</span>型</p>
            <p class="rightArea">
            	<c:if test="${LogBuyCashOne.bill_type == 1}">
            		<c:if test="${LogBuyCashOne.type == 3}">商城购物</c:if>
            	</c:if>
            	<c:if test="${LogBuyCashOne.bill_type == 2}">
            		<c:if test="${LogBuyCashOne.type == 1}">${LogBuyCashOne.award_name}</c:if>
            		<c:if test="${LogBuyCashOne.type == 2}">退款</c:if>
            	</c:if>           
            </p> 
        </li>
        <li class="clearfix">
            <p class="leftArea">状<span>站位</span>态</p>
            <p class="rightArea">
            <c:if test="${LogBuyCashOne.bill_type == 2 and LogBuyCashOne.type == 1}">已入账</c:if>
            <c:if test="${LogBuyCashOne.bill_type == 2 and LogBuyCashOne.type == 2}">已退款</c:if>
            <c:if test="${LogBuyCashOne.bill_type == 1 and LogBuyCashOne.type == 3}">支付成功</c:if>
            </p>
        </li>
        <li class="clearfix">
            <p class="leftArea">创建时间</p>
            <p class="rightArea">${LogBuyCashOne.create_time}</p>
        </li>
        <li class="clearfix">
            <p class="leftArea">交易单号</p>
            <p class="rightArea">${LogBuyCashOne.no}</p>
        </li>
        <li class="clearfix">
            <p class="leftArea">摘<span>站位</span>要</p>	
            <p class="rightArea">${LogBuyCashOne.remark}</p>  
        </li>
     </c:if>   
        <c:if test="${(LogBuyCashOne.award_id == 3 or LogBuyCashOne.award_id == 4 or LogBuyCashOne.award_id == 8) and LogBuyCashOne.type == 1}">
	        <li class="clearfix">
	            <p class="leftArea bor-l">佣金比例</p>
	            <p class="rightArea"><fmt:formatNumber value="${LogBuyCashOne.rate*100}" pattern="0" maxFractionDigits="0"/>%</p>
	        </li>
	        <li class="clearfix">
	            <p class="leftArea bor-l">现金收益</p>
	            <p class="rightArea">${LogBuyCashOne.free_cash}</p>
	        </li>
	        <li class="clearfix">
	            <p class="leftArea bor-l">${shopping_money_name}</p>
	            <p class="rightArea">${LogBuyCashOne.buy_cash}</p>
	        </li>
	     </c:if>
        <c:if test="${LogBuyCashOne.award_id == 2 and LogBuyCashOne.type == 1}">
	        <li class="clearfix">
	            <p class="leftArea bor-l">出售${ticket_name}</p>
	            <p class="rightArea">${LogBuyCashOne.ticket}</p>
	        </li>
	        <li class="clearfix">
	            <p class="leftArea bor-l">出售${ticket_name}类型</p>
	            <p class="rightArea"><fmt:formatNumber value="${LogBuyCashOne.sell_rate*10}" pattern="#0.0" maxFractionDigits="1"/>折${ticket_name}</p>
	        </li>
	        <li class="clearfix">
	            <p class="leftArea bor-l">买方购入${ticket_name}类型</p>
	            <p class="rightArea"><fmt:formatNumber value="${LogBuyCashOne.buy_rate*10}" pattern="#0.0" maxFractionDigits="1"/>折${ticket_name}</p>
	        </li>
	        <li class="clearfix">
	            <p class="leftArea bor-l">总收益</p>
	            <p class="rightArea">${LogBuyCashOne.earn}</p>
	        </li>
	        <li class="clearfix">
	            <p class="leftArea bor-l">--本金</p>
	            <p class="rightArea">${LogBuyCashOne.capital_cash}</p>
	        </li>	  
	        <li class="clearfix">
	            <p class="leftArea bor-l">--利润</p>
	            <p class="rightArea"><fmt:formatNumber value="${LogBuyCashOne.profit_cash -LogBuyCashOne.buy_cash}" pattern="#0.00" maxFractionDigits="2"/></p>
	        </li>
	      
	        <li class="clearfix">
	            <p class="leftArea bor-l">--${shopping_money_name}</p>
	            <p class="rightArea">${LogBuyCashOne.buy_cash}</p>
	        </li>	        	              	        
	     </c:if>
	     <c:if test="${(LogBuyCashOne.type == 2 and LogBuyCashOne.bill_type == 2) or (LogBuyCashOne.type == 3 and LogBuyCashOne.bill_type == 1)}">
     	 <li class="clearfix">
			<p class="leftArea bor-l">关联交易</p>
			<c:if test="${'ios'==os}">
				<p class="rightArea col-" onclick="fn_goConnPage('${LogBuyCashOne.order_id}','${LogBuyCashOne.order_state}','${LogBuyCashOne.order_payType}','${LogBuyCashOne.order_orderTyp}')">订单号：${LogBuyCashOne.order_no}</p>
			</c:if>
	         <c:if test="${'wechat'==os ||'web'==os}">
		    	<p class="rightArea col-" id='{"name":"weOpenOrderPage", "params": {"orderId":${LogBuyCashOne.order_id }}}'>订单号：${LogBuyCashOne.order_no}</p>
		    </c:if>
		    <c:if test="${'android'==os}">
		    	<p class="rightArea col-" onclick="android.openPage('com.uniplaza.fenx.mmine.order.activity.MineOrderDetailActivity:::order_id->${LogBuyCashOne.order_id}')">订单号：${LogBuyCashOne.order_no}</p>
		    </c:if>
		 </li>
	     </c:if>  	       
    </ul>
</body>
</html>